﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="User_Manager.aspx.cs" EnableEventValidation="false"
    Inherits="Admin_User_User_Manager" Theme="admin_skin" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript">

        function department(str) {

            window.open('../../WebCommon/Department.aspx?SID=' + str, 'this', 'width=600,height=295,top=200, left=300');
        }

    </script>
    <script type="text/javascript" language="javascript">

        function Job(str) {
            window.open('../../WebCommon/Job.aspx?SID=' + str, '', 'width=600,height=295,top=200, left=300');
        }

    </script>
    <script type="text/javascript" language="javascript">

        function JobSlave(str) {
            window.open('../../WebCommon/SlaveJob.aspx?SID=' + str, '', 'width=600,height=295,top=200, left=300');
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <table border="0" class="table_rightFrame" cellpadding="0" cellspacing="0">
            <tr>
                <td align="left">
                    <asp:Button ID="btnAdd" runat="server" Text="新增人员" OnClick="btnAdd_Click" SkinID="buttonSkin"
                        Width="60px" /><asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click1"
                            SkinID="buttonSkin" OnClientClick="return confirm('确认要删除吗？');" /><asp:Button ID="btnIsDimission"
                                runat="server" CausesValidation="False" OnClick="btnIsDimission_Click" SkinID="buttonSkin"
                                Text="停用" /><asp:Button ID="btnUnDimission" runat="server" CausesValidation="False"
                                    OnClick="btnUnDimission_Click" Text="启用" Enabled="False" SkinID="buttonSkin" /><asp:DropDownList
                                        ID="drpIsDimission" runat="server" SkinID="dropdownlistSkin" Width="50px" AutoPostBack="True"
                                        OnSelectedIndexChanged="drpIsDimission_SelectedIndexChanged1">
                                        <asp:ListItem Value="1">在职</asp:ListItem>
                                        <asp:ListItem Value="0">离职</asp:ListItem>
                                    </asp:DropDownList>
                    <asp:DropDownList ID="drpSelect" runat="server" SkinID="dropdownlistSkin" Width="105px"
                        AutoPostBack="True" OnSelectedIndexChanged="drpSelect_SelectedIndexChanged">
                        <asp:ListItem Value="0">选择查询条件</asp:ListItem>
                        <asp:ListItem Value="1">登录名称</asp:ListItem>
                        <asp:ListItem Value="2">员工姓名 </asp:ListItem>
                        <asp:ListItem Value="3">人员编号</asp:ListItem>
                        <asp:ListItem Value="4">主岗名称</asp:ListItem>
                        <asp:ListItem Value="5">职位级别</asp:ListItem>
                        <asp:ListItem Value="6">部门名称</asp:ListItem>
                        <asp:ListItem Value="7">副岗名称</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="drpTarget" runat="server" Visible="False">
                    </asp:DropDownList>
                    <asp:TextBox ID="txtSelect_Content" runat="server" SkinID="textboxSkin" Width="100px"></asp:TextBox><input
                        id="txtContent" onclick="javascript: department('txtContent');" runat="server"
                        type="text" style="width: 150px" visible="false" /><asp:Button ID="btnSelect" runat="server"
                            Text="查询" OnClick="btnSelect_Click" SkinID="buttonSkin" CausesValidation="False" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Panel ID="Panel1" runat="server" Height="250px" ScrollBars="Vertical" Width="800px">
                        <asp:GridView ID="gdvUserName" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                            OnPageIndexChanging="gdvUserName_PageIndexChanging" OnSelectedIndexChanging="gdvUserName_SelectedIndexChanging"
                            OnRowCreated="gdvUserName_RowCreated" SkinID="gridviewSkin" Width="800px">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" Wrap="False" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="UserId" HeaderText="id">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="30px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="30px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="UserName" HeaderText="用户名">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="80px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="80px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="RealName" HeaderText="真实姓名">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="60px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="DepartmentId" HeaderText="所属部门">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="120px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="RoleName" HeaderText="角色组">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="70px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="70px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterJob" HeaderText="主岗名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="120px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PartTimeDepartmentId" HeaderText="兼职部门">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="80px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="80px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveJob" HeaderText="副岗名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="120px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PostLevel" HeaderText="职位级别">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="70px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="70px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="IsDepartmentManager" HeaderText="部门主管">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="60px" />
                                </asp:BoundField>
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <hr />
                    <input id="hId" runat="server" type="hidden" style="height: 1px" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table border="0" cellpadding="0" cellspacing="1" style="background-color: #999999"
                        width="500px">
                        <tr class="trTable">
                            <td>
                                <br />
                                <table border="0" cellpadding="1" cellspacing="0" style="background-color: #999999"
                                    width="500px">
                                    <tr class="trTable">
                                        <td align="right">用 户 名 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtUserName" runat="server" MaxLength="16" SkinID="textboxSkin"></asp:TextBox><font
                                                color="#ff0000">*(1-16位)</font><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                                    runat="server" ControlToValidate="txtUserName" ErrorMessage="RequiredFieldValidator"
                                                    Font-Size="9pt" Display="Dynamic" ValidationGroup="0">用户名不能为空</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">真实姓名 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtRealName" runat="server" MaxLength="30" SkinID="textboxSkin"
                                                CausesValidation="True"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                                                    runat="server" ControlToValidate="txtRealName" Display="Dynamic" ErrorMessage="RequiredFieldValidator"
                                                    Font-Size="9pt" ValidationGroup="0">真实姓名不能为空</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">OA关联代码:&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtItCode" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtItCode"
                                                Display="Dynamic" ErrorMessage="关联代码不能为空"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">用户密码 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtUserPassWord" runat="server" TextMode="Password" MaxLength="16"
                                                SkinID="textboxSkin" CausesValidation="True"></asp:TextBox><font color="#ff0000">*(6-16位数字或字母)</font><asp:RequiredFieldValidator
                                                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUserPassWord"
                                                    Display="Dynamic" ErrorMessage="密码不可以为空" ValidationGroup="2"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">确认密码 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtReUserPassWord" runat="server" TextMode="Password" MaxLength="16"
                                                SkinID="textboxSkin" CausesValidation="True"></asp:TextBox><asp:CompareValidator
                                                    ID="CompareValidator1" runat="server" ControlToCompare="txtReUserPassWord" ControlToValidate="txtUserPassWord"
                                                    ErrorMessage="请确保两者输入一样" Font-Size="9pt" Display="Dynamic" ValidationGroup="2"></asp:CompareValidator><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtReUserPassWord"
                                                        Display="Dynamic" ErrorMessage="密码不可以为空" ValidationGroup="2"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">角 色 组 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:DropDownList ID="drpRole" runat="server" SkinID="dropdownlistSkin">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">部 &nbsp;&nbsp; 门 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <input id="txtDepartment" runat="server" type="text" /><a href="#"
                                                onclick="javascript:department('txtDepartment');"><img alt="" src="../../images/addpages.jpg"
                                                    border="0" /></a>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">主岗名称 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <input id="txtMasterJob" runat="server" type="text" readonly="readOnly" /><a href="#"
                                                onclick="javascript:Job('txtMasterJob');"><img alt="" src="../../images/addpages.jpg"
                                                    border="0" /></a>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">兼职部门 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <input id="txtPartTimeDepartment" runat="server" type="text" readonly="readOnly" /><a
                                                href="#" onclick="javascript:department('txtPartTimeDepartment');"><img alt=""
                                                    src="../../images/addpages.jpg" border="0" /></a>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">副岗名称 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <input id="txtSlaveJob" runat="server" type="text" readonly="readOnly" /><a href="#"
                                                onclick="javascript:JobSlave('txtSlaveJob');"><img alt="" src="../../images/addpages.jpg"
                                                    border="0" /></a>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">职位级别 :&nbsp;
                                        </td>
                                        <td align="left" style="height: 22px">
                                            <asp:DropDownList ID="drpPostLevel" runat="server" SkinID="dropdownlistSkin">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td align="right">是否部门经理级别以上 :&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:DropDownList ID="drpIsDepartmentManager" runat="server" SkinID="dropdownlistSkin">
                                                <asp:ListItem Value="0">否</asp:ListItem>
                                                <asp:ListItem Value="1">是</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr class="trTable">
                                        <td colspan="2" align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        <asp:Button ID="btnOk" runat="server" OnClick="btnOk_Click" Text="确定" ValidationGroup="2"
                                            SkinID="buttonSkin" />
                                            &nbsp;&nbsp;
                                        <asp:Button ID="btnchongzhi" runat="server" Text="重置" OnClick="btnchongzhi_Click"
                                            CausesValidation="False" SkinID="buttonSkin" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
